//
//  HYUserManager.m
//  HaiYue
//
//  Created by skyline on 2018/7/5.
//  Copyright © 2018年 skyline. All rights reserved.
//

#import "HYUserManager.h"

@implementation HYUserManager
static  HYUserManager *_user;
static dispatch_once_t onceToken;
+ (instancetype)manager
{
    if (!_user)
    {
        dispatch_once(&onceToken, ^{
            _user = [[HYUserManager alloc] init];
        });
    }
    return _user;
}

- (HYUserModel *)user
{
    return [CCSave unarchiverObjFromFile:USER_MODEL];
}

@end
